package com.distributer.delayqueue.job;

import java.io.Serializable;
import java.util.Date;

public class JobMsg implements Serializable,Job{

	private static final long serialVersionUID = -1098957275805694346L;

	private String jobKey;
	
	private String jobTopic;
	
	private String jobId;
	
	private long delayTime;
	
	private String body;
	
	private Date createTime;
	
	private int status;

	public void setJobKey(String jobKey) {
		this.jobKey = jobKey;
	}

	public void setJobTopic(String jobTopic) {
		this.jobTopic = jobTopic;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public void setDelayTime(long delayTime) {
		this.delayTime = delayTime;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String getJobKey() {
		return this.jobKey;
	}

	@Override
	public String getJobTopic() {
		return this.jobTopic;
	}

	@Override
	public String getJobId() {
		return this.jobId;
	}

	@Override
	public long getDelayTime() {
		return this.delayTime;
	}

	@Override
	public String getBody() {
		return this.body;
	}

	@Override
	public Date getCreateTime() {
		return this.createTime;
	}

	@Override
	public int getStatus() {
		return this.status;
	}
}
